import requests
import json


def sendMessage(info):
    url = "http://127.0.0.1:5000/sendMessage"

    payload = json.dumps(info)
    headers = {
        'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
        'Content-Type': 'application/json',
        'Accept': '*/*',
        'Host': '127.0.0.1:5000',
        'Connection': 'keep-alive'
    }

    response = requests.request("POST", url, headers=headers, data=payload)

